package com.example.bluetoothtest.ui;

import java.util.List;

import android.app.Application;
import android.bluetooth.BluetoothSocket;
import android.widget.ArrayAdapter;

public class UnderCoverApplication extends Application
{
	List<BluetoothSocket> connectedSockets;
	ArrayAdapter<String> connectedListAdapter;
	BluetoothSocket clientSocket;
	List<String> connectedNameList;
	String wodiname;
	String feiwodiname;
	
	int playersNumber;
	String identity_word;
	String id;
	boolean isserver;
	
	public void setwodiname(String wodi)
	{
		this.wodiname=wodi;
	}
	public void setfeiwodiname(String feiwodi)
	{
		this.feiwodiname=feiwodi;
	}
	public String getwodiname()
	{
		return this.wodiname;
	}
	public String getfeiwodiname( )
	{
		return this.feiwodiname;
	}
	public List<BluetoothSocket> getConnectedSockets()
	{
		return connectedSockets;
	}

	public void setConnectedSockets(List<BluetoothSocket> connectedSockets)
	{
		this.connectedSockets = connectedSockets;
	}

	public int getPlayersNumber()
	{
		return playersNumber;
	}

	public void setPlayersNumber(int playersNumber)
	{
		this.playersNumber = playersNumber;
	}

	public BluetoothSocket getClientSocket()
	{
		return clientSocket;
	}

	public void setClientSocket(BluetoothSocket clientSocket)
	{
		this.clientSocket = clientSocket;
	}

    public void setconnectedListAdapter(ArrayAdapter<String> connectedListAdapter)
    {
    	this.connectedListAdapter=connectedListAdapter;
    }
    public ArrayAdapter<String> getconnectedListAdapter()
    {
    	return this.connectedListAdapter;
    }

	public void set_indentity_word(String identity)
	{
		this.identity_word=identity;
		
	}
	public void set_id(String id)
	{
		this.id=id;	
	}
	public void set_isserver(boolean isserver)
	{
		this.isserver=isserver;	
	}
	public String get_indentity_word()
	{
		return this.identity_word;
	}
	public String get_id()
	{
		return this.id;
	}
	public boolean get_isserver()
	{
		return this.isserver;
	}
	public void set_connectedNameList(List<String> connectedNameList)
	{
		this.connectedNameList=connectedNameList;
	}
	public List<String> get_connectedNameList()
	{
		return this.connectedNameList;
	}
}
